package com.csdj.controller.sy;

import com.csdj.common.utils.ResponseResult;
import com.csdj.dto.EmpPowerDto;
import com.csdj.service.SyEmpareapowerService;
import com.csdj.service.SyEmpmenupowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * @author 涵哥
 * @date 2023-08-26 16:30
 *  员工菜单权限
 */
@RestController
@RequestMapping("/sy/empmenupower")
public class SystemEmpMenuPowerController {

    @Autowired
    private SyEmpmenupowerService syEmpmenupowerService;

    /**
     * 员工菜单权限的保存
     * @return
     */
    @PostMapping("/edit")
    public ResponseResult edit(@RequestBody EmpPowerDto empPowerDto){
       return syEmpmenupowerService.edit(empPowerDto);
    }
}
